{extend name='public/layout' /}
{block name='content'}
<div class="main m_t_15">
    <div class="position"><p>您当前的位置：<a href="{:url('Index/index')}" title="{$site.title}">{$site.title}</a> &gt; <a
            href="{:url('Loupan/index')}">新房</a> &gt; <a href="{:url('Loupan/detail',['id'=>$info['id']])}" title="{$info.title}">{$info.title}</a> &gt; 配套信息</p></div>
    <div class="m_t_15 overflow_h">
        <div class="n_h_n3_l">
            <div class="n_h_n3_t">
                {include file='loupan/nav' /}
            </div>

            <div class="news_h_box">
                <iframe width="100%" height="auto" frameborder="0" scrolling="no" src="{:url('Api/map',['id'=>$info['id'],'model'=>'house','lat'=>$info.lat,'lng'=>$info.lng])}" id="main" style="height: 500px;"></iframe>
                <div class="news_h_box05">
                    <div class="title03" style="border: none;height: 50px;line-height: 50px;">配套信息</div>
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                        {php}$peitao=array_filter($info['peitao']);{/php}
                        {notempty name='peitao'}
                        <tr>
                            <th width="23%">学校</th>
                            <td width="77%">{$info.peitao.xuexiao}</td>
                        </tr>
                        <tr>
                            <th>购物</th>
                            <td>{$info.peitao.gouwu}</td>
                        </tr>
                        <tr>
                            <th>医院</th>
                            <td>{$info.peitao.yiyuan}</td>
                        </tr>
                        <tr>
                            <th>生活</th>
                            <td>{$info.peitao.shenghuo}</td>
                        </tr>
                        <tr>
                            <th>娱乐</th>
                            <td>{$info.peitao.yule}</td>
                        </tr>
                        <tr>
                            <th>餐饮</th>
                            <td>{$info.peitao.canyin}</td>
                        </tr>
                        {else /}
                        <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=oSxCtoIssCCFFb6WtqfrQrtO"></script>
                        <script src="__JS__/peitao.js"></script>
                        <tr>
                            <th width="23%">学校(<span id="school_total"></span>)</th>
                            <td width="77%"><span id="school_con"></span></td>
                        </tr>
                        <tr>
                            <th>购物(<span id="shop_total"></span>)</th>
                            <td><span id="shop_con"></span></td>
                        </tr>
                        <tr>
                            <th>医院(<span id="yiyuan_total"></span>)</th>
                            <td><span id="yiyuan_con"></span></td>
                        </tr>
                        <tr>
                            <th>生活(<span id="life_total"></span>)</th>
                            <td> <span id="life_con"></span></td>
                        </tr>
                        <tr>
                            <th>娱乐(<span id="yule_total"></span>)</th>
                            <td> <span id="yule_con"></span></td>
                        </tr>
                        <tr>
                            <th>餐饮(<span id="food_total"></span>)</th>
                            <td><span id="food_con"></span></td>
                        </tr>
                            <div id="allmap" style="display:none;"></div>
                        <script type="text/javascript">
                            var lng = '{$info.lng}';
                            var lat = '{$info.lat}';
                            var streetView = 0;
                            BMapApplication.init({'lng' : lng, 'lat' : lat, 'mapContainerId' : 'allmap'});
                            BMapApplication.getAreaMap('学校', 'school');
                            BMapApplication.getAreaMap('超市', 'shop');
                            BMapApplication.getAreaMap('医院', 'yiyuan');
                            BMapApplication.getAreaMap('市场', 'life');
                            BMapApplication.getAreaMap('娱乐', 'yule');
                            BMapApplication.getAreaMap('餐饮', 'food');
                        </script>
                        {/notempty}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="house_r">
            <div class="title01">推荐楼盘</div>
            <div class="n_h_s_right">
                {include file='loupan/right' /}
            </div>
        </div>
    </div>



</div>
<link type="text/css" href="__PUBLIC__/js/photo/css/prettyPhoto.css" rel="stylesheet" />
<script type="text/javascript" src="__PUBLIC__/js/photo/jquery.prettyPhoto.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#pic_list:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
    })
</script>
{/block}